Skip to content

Bugfix: Add missing dependency#144

Merged
albatrossflavour merged 1 commit into
voxpupuli:developmentfrom
theosotr:fix
Aug 14, 2019
Merged

Bugfix: Add missing dependency#144
albatrossflavour merged 1 commit into
voxpupuli:developmentfrom
theosotr:fix

Conversation

@theosotr

Copy link
Copy Markdown
Contributor

The Exec[os_patching::exec::fact] resource depends on the "${cache_dir}/reboot_override" file. Without this dependency this puppet script might fail, as follows:

Notice: Compiled catalog for 067a7595e6ae in environment production in 0.22 seconds
Notice: /Stage[main]/Os_patching/File[/usr/local/bin/os_patching_fact_generation.sh]/ensure: defined content as '{md5}c79dffc9d34f5f4fabe57302e355f140'
Error: /Stage[main]/Os_patching/Exec[os_patching::exec::fact]: Failed to call refresh: /usr/local/bin/os_patching_fact_generation.sh returned 1 instead of one of [0]
Error: /Stage[main]/Os_patching/Exec[os_patching::exec::fact]: /usr/local/bin/os_patching_fact_generation.sh returned 1 instead of one of [0]
Notice: /Stage[main]/Os_patching/Cron[Cache patching data]/ensure: created
Notice: /Stage[main]/Os_patching/Cron[Cache patching data at reboot]/ensure: created
Notice: /Stage[main]/Os_patching/File[/var/cache/os_patching]/ensure: created
Notice: /Stage[main]/Os_patching/File[/var/cache/os_patching/reboot_override]/ensure: defined content as '{md5}c21f969b5f03d33d43e04f8f136e7682'

Tested on a Linux machine.

The `Exec[os_patching::exec::fact]` requires the
`${cache_dir}/reboot_override` file.
@albatrossflavour

Copy link
Copy Markdown
Collaborator

@theosotr thanks. Merged to dev.

@albatrossflavour
albatrossflavour merged commit f8adf22 into voxpupuli:development Aug 14, 2019
@albatrossflavour albatrossflavour added the bug Something isn't working label Aug 21, 2019
albatrossflavour added a commit that referenced this pull request Aug 21, 2019
* The declared ISO format does not exist, had one extra `dd` (#141)

* Force usage of the 'C' locale (#142)

When parsing command output, we should ensure the utility will emit
messages in the language we are using for matching patterns.  Force the
locale to be 'C' by setting the LC_ALL environment variable.

* link to the wiki

* #128 additional queries as examples

* Add missing dependency (#144)

The `Exec[os_patching::exec::fact]` requires the
`${cache_dir}/reboot_override` file.

* Updates to facter and bug fixes (#148)

* #143 try a new way of doing matching for pinned packages

* Fixed typos

* #147 update the fact with the new data

* #147 fix ordering

* #147 only create the mismatch array if the file has data in it

* #147 cross linux distro compatability

* #147 sles compatability

* #145 add a list of KB updates to the fact

* Fix handling of KBArticleIDs (#146)

* Fix handling of KBArticleIDs

- Ensures all KBArticleIDs are processed, not just the first one in the array
- Ensures the ID's start with "KB", which aids reusing the fact info later on.

* fix typo in variable

typo in variable (kbslist --> kblist) on line 57

* #143 try a new way of doing matching for pinned packages

* Fixed typos

* #147 update the fact with the new data

* #147 fix ordering

* #147 only create the mismatch array if the file has data in it

* #147 cross linux distro compatability

* #147 sles compatability

* #145 add a list of KB updates to the fact

* Fix handling of KBArticleIDs (#146)

* Fix handling of KBArticleIDs

- Ensures all KBArticleIDs are processed, not just the first one in the array
- Ensures the ID's start with "KB", which aids reusing the fact info later on.

* fix typo in variable

typo in variable (kbslist --> kblist) on line 57

* Fix missing slash (#147)

* #143 Fix formatting and use puppet_vardir rather than puppet_client_datadir

* #143 change to clientcert rather than fqdn for the catalog name

* rename element to version_specified_but_not_locked_packages

* Toggle to allow warnings to block patching #143 (#150)

* #143 first stab at a new parameter to control VSBNLP behaviour

* Try the new format for the locked files

* Abort flag

* update fact

* #149 allow Debian to run `apt-get autoremove` at reboot (#151)

* Add an option to the task to allow the running of `apt-get autoremove` after patching

* #149 try both ways of doing the autoremove

* #149 fix default

* #149 fix default

* #149 allow cron job to be removed

* #149 revert changes to the task now that we are doing the autoremove via cron

* Add an option to the task to allow the running of `apt-get autoremove` after patching

* #149 try both ways of doing the autoremove

* #149 fix default

* #149 fix default

* #149 allow cron job to be removed

* #149 revert changes to the task now that we are doing the autoremove via cron

* Pre-v0.12.0 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants